﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.ObjectModel;
using System.ComponentModel;

namespace An_Im.Model
{
    internal class MarcoSliderInfomation : INotifyPropertyChanged
    {
        /// <summary>
        /// 从0到100值。
        /// </summary>
        public double Value 
        {
            get => _value;
            set
            {
                _value = value;
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("Value"));
            }
        }

        private double _value;
        
        /// <summary>
        /// 宏的名称。
        /// </summary>
        public string Name
        {
            get => _name;
            set
            {
                _name = value;
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("Name"));
            }
        }
        
        private string _name;

        public event PropertyChangedEventHandler PropertyChanged;
    }
}
